package pl.edu.uj.tcs.blef.protocol;

public class BussyServerErrorFactory implements RequestFactory {

	@Override
	public Request build(Object[] parameters, RequestHandler handler) throws BuildFailedException {
		if(parameters != null) throw new BuildFailedException("No parameters excepted");
		return new BussyServerError("ERROR Server bussy!", handler);
	}

	@Override
	public Request parse(String message, RequestHandler handler) throws ParseFailedException, BuildFailedException {
		// TODO Add parser in client.
		return null;
	}
}
